import VueRouter from 'vue-router'

import HomeContainer from './component/tabbar/HomeContainer.vue'
import MemberContainer from './component/tabbar/MemberContainer.vue'
import SearchContainer from './component/tabbar/SearchContainer.vue'
import ShopcarContainer from './component/tabbar/ShopcarContainer.vue'




//定义一个路由对象
var router = new VueRouter({
    routes:[
        { path: '/', redirect: '/home' },
        {path:'/home',component:HomeContainer},
        {path:'/member',component:MemberContainer},
        {path:'/search',component:SearchContainer},
        {path:'/shopcar',component:ShopcarContainer}
    ],
    linkActiveClass:'mui-active'
    
})


// 把路由对象暴露出去
export default router